home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekkan Dennou Club 147
/
Gekkan Dennou Club - 2000.8 Vol. 147 (Japan).7z
/
Gekkan Dennou Club - 2000.8 Vol. 147 (Japan) (Track 1).bin
/
tools
/
zmc3v078
/
zmc3v078.lzh
/
SRCSV078.LZH
/
MAKEFILE
< prev
next >
Wrap
Text File
|
2000-06-01
|
4KB
|
112 lines
# This is a zmc3's Makefile.
# If you want to compile in other enviroments,
# please modify this file. If you want to use another OS
# without below, modify 'config.h,' too.
#OS = X68000 # for SHARP X680x0 series with gcc
OS = BCB # for Windows95/NT(x86) with Borland C++ Builder
#OS = MSDOS # for MS-DOS with LSI-C / Turbo-C
#OS = TOWNS # for FUJITSU FM-TOWNS series with High-C
#OS = Linux_i386
#OS = Solaris_UltraSPARC
#OS = FreeBSD
#OS = SunOS41x_SPARC
RM = del # for MS-DOS,Human68k,...
#RM = rm # for unix
#CC = gcc # for Human68k, PC-UNIX & so on...
CC = bcc32 # for Borland C++ Builder
#CC = tcc # for MS-DOS Turbo-C
#CC = lcc # for MS-DOS LSI-C
#CC = hc386 # for TOWNS High-C
#MMODEL = -ml # Memory model for MS-DOS
#CFLAGS = -O -fforce-mem -finline-functions -cc1-stack=204800 # for GCC
#CFLAGS = -O -A -DMEMDEBUG -d # for C++ Builder w/ debug option
CFLAGS = -O2 -A -d -tWC -v # for C++ Builder w/ debug option
#CFLAGS = -O -A -d # for C++ Builder
#CFLAGS = -G -A -d $(MMODEL) # for MS-DOS Turbo-C
#CFLAGS = -O $(MMODEL) # for MS-DOS LSI-C
#CFLAGS = -Hansi # for TOWNS High-C
#LIBS = -ldos # check off this remark if you use DOS-lib.(X680x0 only)
INCDIR = -I.
#OEXT = .o # for Human68k,unix,...
OEXT = .obj # for MS-DOS,TOWNS High-C
#EEXT = .x # for Human68k
EEXT = .exe # for MS-DOS
#EEXT = .exp # for TOWNS High-C
#EEXT = # for unix
OBJS = zmc3$(OEXT) etc$(OEXT) readfile$(OEXT) switch$(OEXT) \
makezmd$(OEXT) makezmd1$(OEXT) makezmd2$(OEXT) \
parsesub$(OEXT) makezmd3$(OEXT) 68lib$(OEXT) \
velo$(OEXT) v3macro$(OEXT) arcc$(OEXT) \
bracket$(OEXT) portamnt$(OEXT)
TARGET = zmc3$(EEXT)
MARIKO = A # for Human68k
GCC_OPTION = EFGLOPTW # for Human68k
HAS = -l # for Human68k
SILK = -t -l -x # for Human68k
WARNLVL = 3 # warning level used by default
$(TARGET) : $(OBJS)
# $(CC) -o $@ $(OBJS) $(LIBS) # for GCC
$(CC) -e$@ $(OBJS) $(LIBS) # for C++ Builder
# $(CC) -e$@ $(MMODEL) @${$(OBJS) $(LIBS)} # for MS-DOS Turbo-C
# $(CC) -o $@ $(MMODEL) @${$(OBJS) $(LIBS)} # for MS-DOS LSI-C
# $(CC) -o $@ @${$(OBJS) $(LIBS)} # for TOWNS High-C
# txclr
# @echo "done."
#.SUFFIXES: .c
.c$(OEXT):
$(CC) -c $(CFLAGS) $(INCDIR) -D$(OS) $(MACRO) $<
zmc3$(OEXT): config.h zmc3.c etc.h readfile.h switch.h structs.h
readfile$(OEXT): config.h readfile.c etc.h switch.h
etc$(OEXT): config.h etc.c
switch$(OEXT): config.h switch.c etc.h 68lib.h zmc3.h
makezmd$(OEXT): config.h makezmd.c makezmd1.h makezmd2.h structs.h etc.h
makezmd1$(OEXT): config.h makezmd1.c etc.h structs.h structs2.h makezmd.h \
68lib.h zmscmd.h cmncmd.h
makezmd2$(OEXT): config.h makezmd2.c parsesub.h makezmd.h makezmd3.h etc.h \
structs.h structs2.h velo.h switch.h \
makezmd1.h
makezmd3$(OEXT): config.h makezmd3.c parsesub.h etc.h structs.h \
structs2.h 68lib.h velo.h bracket.h portamnt.h
velo$(OEXT): config.h velo.c parsesub.h etc.h structs.h structs2.h
parsesub$(OEXT): config.h parsesub.c parsesub.h etc.h structs2.h 68lib.h switch.h makezmd.h makezmd2.h velo.h
68lib$(OEXT): config.h 68lib.c
68lib.h: config.h
v3macro$(OEXT): config.h v3macro.c parsesub.h etc.h readfile.h structs2.h
arcc$(OEXT): config.h arcc.c parsesub.h etc.h structs2.h
bracket$(OEXT): config.h bracket.c parsesub.h etc.h structs2.h etc.h \
makezmd1.h makezmd2.h makezmd3.h velo.h 68lib.h \
arcc.h zmscmd.h trkcmd.h
portamnt$(OEXT): config.h portamnt.c structs.h structs2.h etc.h \
makezmd2.h makezmd3.h parsesub.h velo.h 68lib.h
all: $(TARGET)
clean:
$(RM) *$(OEXT)
$(RM) $(TARGET)
$(RM) *.bak
$(RM) *~
cleanbak:
$(RM) *.bak
$(RM) *~
cleanobj:
$(RM) *$(OEXT)
depend::
$(CC) -MM $(INCDIR) $(SRCS)